package itheima;

import java.util.Scanner;

public class Demo5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数:");
        int isOdd = sc.nextInt();
        boolean b = genAnser(isOdd);
        System.out.println(b);
    }

    public static boolean genAnser(int isOdd) {
        boolean a = isOdd % 2 == 0 ? true : false;
        return a;
    }
}


